
//
//  UILabel+Extension.swift
//  LEOweibo
//
//  Created by zz on 16/3/3.
//  Copyright © 2016年 zz. All rights reserved.
//

import UIKit

extension UILabel {
    
    //text
//    font
//    textColor
//    textAlignment
//    attributedText
//    numberOfLines
    ///便利构造函数
    convenience  init(leo_text leotext: String?,
         fontSize: CGFloat = 14,
         textAlignment:NSTextAlignment = .Left,
         numberOfLines:NSInteger = 0,
        color: UIColor = UIColor.blackColor()) {
        self.init()
            self.text = leotext
            self.font = UIFont.systemFontOfSize(fontSize)
            self.textAlignment = textAlignment
            self.textColor = color
            self.numberOfLines = numberOfLines
            sizeToFit()
            
    }
}